#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QEvent>
#include <QKeyEvent>
#include <QDebug>
#include <QtGui>
#include "logger.h"
#include "fins.h"
#include "omron_float.h"
#include "omron_int.h"
#include "omron_text.h"
#include "keypresseater.h"
#include "heater.h"
#include "algo.h"

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

protected:
  bool eventFilter(QObject *obj, QEvent *ev);

private slots:

    void on_ViewFins_clicked();

    void on_ViewLogger_clicked();

    void spinValueChanged( int );

    void accept ();



private:
    Ui::MainWindow *ui;
    Logger *logger;
    Fins *fins;
    OmronWidget *spin;

    Heater *Dno;
    Heater *Bok;
    Heater *Pit;
    Algorithm *Algo;
    Heater *Growth;

    QTextEdit *BigEdit;

    QHBoxLayout *hlayoutUp;
    QHBoxLayout *hlayoutDown;
    QVBoxLayout *vlayout;
    QWidget *mainWidget;

    QPushButton *butOpen;
    QLabel *labelImage;
    QCheckBox *cbSize;


    QGridLayout *grid;
    QGroupBox *createDnoGroup();



    void InitFields ();
    void createMenu();
    void createHorizontalGroupBox();


};

#endif // MAINWINDOW_H
